// 初始化样式
* {
    margin: 0;
    padding: 0;
    list-style: none;
    user-select: none;
}

#app {
    margin: 50px auto;
    display: flex;
    justify-content: center;
    align-items: center;

    .box {
        height: 200px;
        position: relative;

        ul {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto;
            background-color: #ccc;

            li {
                width: 235px;
                height: 30px;
                line-height: 30px;
                cursor: pointer;
                padding: 5px 0;
                text-align: center;
            }

            .active {
                color: #fff;
                background-color: rgb(152, 13, 13);
            }
        }

        .detail {
            position: absolute;
            left: 0;
            top: 40px;
            height: 360px;
            width: 700px;
            background-color: yellow;

            div {
                height: 360px;
                width: 700px;
                text-align: center;

                &:nth-child(1) {
                    background-color: yellow;
                    display: none;
                }

                &:nth-child(2) {
                    background-color: rgb(0, 204, 255);
                    display: none;
                }

                &:nth-child(1) {
                    background-color: #bfa;
                    display: none;
                }

                .active {
                    display: block;
                }
            }
        }

        .btn {
            position: absolute;
            bottom: -190px;
            left: 50%;
            transform: translateX(-50%);

            span {
                width: 50px;
                height: 30px;
                line-height: 30px;
                background-color: #fff;
                text-align: center;
                font-size: 14px;
                padding: 10px;
                cursor: pointer;


                &:hover {
                    background-color: #ccc;
                }
            }
        }
    }
}